<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset=UTF-8">
<title>{$smarty.const.TITLE} - 公告列表 </title>
<link href="{$smarty.const.Admin_URL}css/public.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="{$smarty.const.Admin_URL}js/jquery.min.js"></script>
<script type="text/javascript" src="{$smarty.const.Admin_URL}js/global.js"></script>
<script type="text/javascript" src="{$smarty.const.Admin_URL}js/jquery.autotextarea.js"></script>
</head>
{include file="../Index/top.html"}
 <div id="dcMain">
   <!-- 当前位置 -->
<div id="urHere">题库首页<b>></b><strong>公告列表</strong> </div>   <div class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
        <h3>
        <a href="{$smarty.const.__CONTROLLER__}/add.html" class="actionBtn add" style="margin-right:10px">添加公告</a>公告列表</h3>
        <div id="list">
    <form name="action" method="post" action="{$smarty.const.__SELF__}">
    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
     <tr>
      <th width="22" align="center"><input name='chkall' type='checkbox' id='chkall' onclick='selectcheckbox(this.form)' value='check'></th>
      <th width="40" align="center">编号</th>
      <th align="center">标题</th>
      <th width="80" align="center">添加日期</th>
      <th width="80" align="center">操作</th>
     </tr>
     {foreach $info as $q}
          <tr>
      <td align="center"><input type="checkbox" name="checkbox[]" value="{$q.id}" /></td>
      <td align="center">{$q@iteration}</td>
      <td align="center">{$q.tittle}</td>
      <td align="center">{$q.add_time|date_format:"%Y.%m.%d"}</td>
      <td align="center">
              <a href="{$smarty.const.__CONTROLLER__}/upd/id/{$q.id}">编辑</a> | 
              <a href="{$smarty.const.__CONTROLLER__}/del/id/{$q.id}">删除</a>
             </td>
     </tr>
     {/foreach}
         </table>
    <div class="action">
     <select onchange="douAction()">
      <option>批量删除</option>
     </select>
     <input class="btn" type="submit"  />
    </div>
    </form>
    </div>
    <div class="clear"></div>
    <div class="pager">{$page}</div>
 </div>
 <div class="clear"></div>
<div id="dcFooter">
 <div id="footer">
  <div class="line"></div>
  <ul>
   《C语言程序设计》在线考试系统，版权所有
  </ul>
 </div>
</div><!-- dcFooter 结束 -->
<div class="clear"></div> </div>
{literal}
 <script type="text/javascript">
 
 onload = function()
 {
   document.forms['action'].reset();
 }

 function douAction()
 {
     var frm = document.forms['action'];

     frm.elements['new_cat_id'].style.display = frm.elements['action'].value == 'category_move' ? '' : 'none';
 }
 
 </script>
 {/literal}
</body>
</html>